Public: Concord Software Projects : OTrunk Jackrabbit
This page last changed on May 30, 2008 by scytacki.
Links
Source codehttp://svn.concord.org/svn/projects/trunk/common/java/otrunk/otrunk-jackrabbit Next stepsSetup a learner data test
Import sds otml learner data
Repository representation improvementsHere a list of things that might need to be improved in the repository representation:
Round tripping otmlIt seems best if developers can continue to use otml to create and update content in the repository, this requires a few things:
Result of copying in an otml fileThis example is helpful to see how the OTrunk objects are represented in the repository. The way they are represented is probably going to change because it needs to make querying the structure easy. The current represent was the quickest way to get something working. If you look at the export from the repository you can see that the jcr:uuid attributes are used to reference objects in the repository. This allows the queries to take advantage of jackrabbit's built in reference handling. Original filethe imports, and bundles have been removed to make it a little easier to read <?xml version="1.0" encoding="UTF-8"?> <otrunk id="33754150-b594-11d9-9669-0800200c9a66" > <imports>...</imports> <objects> <OTSystem> <bundles> ... </bundles> <root> <OTCompoundDoc name="Compound Document"> <bodyText> <table border="1"> <tr> <td> <object refid="${graph}"/> </td> <td> <object refid="${slider}"/> </td> </tr> </table> </bodyText> <children> <!-- the graph which displays the value of the slider --> <OTDataCollector local_id="graph" name="Graph"> <source> <OTDataGraphable connectPoints="true" color="0x0000ff" drawMarks="false" name="Slider Value" xColumn="0" yColumn="1"> <dataProducer> <OTPropertyDataProducer timeScale="0.1" property="value" target="${slider}" /> </dataProducer> </OTDataGraphable> </source> <xDataAxis> <OTDataAxis min="0" max="100" label="Time" units="min"/> </xDataAxis> <yDataAxis> <OTDataAxis min="-10" max="10" label="sin(x)"/> </yDataAxis> </OTDataCollector> <!-- the slider itself --> <OTSlider local_id="slider" name="Slider" minimum="-10" maximum="10" value="0"/> </children> </OTCompoundDoc> </root> </OTSystem> </objects> </otrunk> Export of repository after these objects are copied inThe bundles have been removed to make it easier to read <ot:root xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal" xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions" xmlns:ot="http://concord.org/otrunk/jcr" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:fn="http://www.w3.org/2005/xpath-functions" jcr:primaryType="nt:unstructured" jcr:uuid="77a984aa-73b3-426c-8e73-3dfcc1061039" ot:type="org.concord.otrunk.OTSystem"> <bundles jcr:primaryType="nt:unstructured"> ... </bundles> <root jcr:primaryType="nt:unstructured" jcr:uuid="11f49c39-7c90-41af-b365-e952bfeb232f" bodyText="<table border="1"> <tr> <td> <object refid="%94b07249-8fd1-40b3-8781-459abddbf429" /> </td> <td> <object refid="%42dcd2c6-1529-408d-bef3-46b16f2f26ba" /> </td> </tr> </table>" name="Compound Document" ot:type="org.concord.otrunk.view.document.OTCompoundDoc"> <children jcr:primaryType="nt:unstructured"> <ot:item jcr:primaryType="nt:unstructured"> <ot:value jcr:primaryType="nt:unstructured" jcr:uuid="94b07249-8fd1-40b3-8781-459abddbf429" localId="graph" name="Graph" ot:type="org.concord.datagraph.state.OTDataCollector"> <source jcr:primaryType="nt:unstructured" jcr:uuid="2b49d9c1-8b64-40b2-b646-57b52b233a76" color="255" drawMarks="false" name="Slider Value" ot:type="org.concord.datagraph.state.OTDataGraphable"> <dataProducer jcr:primaryType="nt:unstructured" jcr:uuid="96526b01-f1ce-42ae-b9e1-908f9e18f6cf" ot:type="org.concord.data.state.OTPropertyDataProducer" property="value" target="42dcd2c6-1529-408d-bef3-46b16f2f26ba" timeScale="0.10000000149011612"/> </source> <xDataAxis jcr:primaryType="nt:unstructured" jcr:uuid="38ea67b8-82df-4c20-a8aa-f1feb7d81f77" label="Time" max="100.0" min="0.0" ot:type="org.concord.datagraph.state.OTDataAxis" units="min"/> <yDataAxis jcr:primaryType="nt:unstructured" jcr:uuid="70e09dbf-819e-4311-8154-ae4f63e8ada6" label="sin(x)" max="10.0" min="-10.0" ot:type="org.concord.datagraph.state.OTDataAxis"/> </ot:value> </ot:item> <ot:item jcr:primaryType="nt:unstructured"> <ot:value jcr:primaryType="nt:unstructured" jcr:uuid="42dcd2c6-1529-408d-bef3-46b16f2f26ba" localId="slider" maximum="10" minimum="-10" name="Slider" ot:type="org.concord.otrunk.ui.OTSlider" value="0"/> </ot:item> </children> </root> <includes jcr:primaryType="nt:unstructured"/> <services jcr:primaryType="nt:unstructured"/> </ot:root> |
Document generated by Confluence on Jan 27, 2014 16:52 |